<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="entity.User"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath() %>/resources/css/basic.css">
<script type="text/javascript"
	src="<%=request.getContextPath() %>/resources/js/basic.js"></script>
</head>
<body>
	<header id="header">
		<div class="center">
			<h1 class="logo">财浙旅行社</h1>
			<nav class="link">
				<h2 class="none">网站导航</h2>
				<ul>
					
					<li><a href="/index">首页</a></li>
					<li><a style="color: #b2b2b2">主题游</a></li>
					<li><a style="color: #b2b2b2">定制游</a></li>
					<li><a style="color: #b2b2b2">机票订购</a></li>
					<li><a style="color: #b2b2b2">公司简介</a></li>
				</ul>
			</nav>
			<%
				Object se= session.getAttribute("user");
  				if(se!=null){
  					User user=(User)se;
  					String name=user.getUsername();
			 %>
			<div class="loginout">
				<a href="/loginout">退出</a>
			</div>
			<div class="login" style="position: relative; top: -66px;">
				<ul>
					<li class="login_name">用&nbsp;户：&nbsp;<%=name %></li>
					<li><a class="hidden" style="display: none;"
						href="<%=request.getContextPath() %>/user/usercenter/mydata">个人资料</a></li>
					<li><a class="hidden" style="display: none;"
						href="<%=request.getContextPath() %>/user/usercenter/mydata">我的旅行</a></li>
					<li><a class="hidden" style="display: none;"
						href="JavaScript:void()">增值业务</a></li>
				</ul>
			</div>


			<%
					}
				 %>
			<%
				if(se==null){
			 %>
			<div class="login">

				<!-- 通过web.xml中拦截了请求转发到login页面 -->
				<a href="<%=request.getContextPath() %>/ToLogin">登录</a>&nbsp;&nbsp;<a
					href="<%=request.getContextPath() %>/ToRegister">注册</a>
			</div>

			<%
			 	}
			  %>
		</div>
	</header>
	<div id="my_cart">
		<a href="<%=request.getContextPath() %>/user/cartlist"><img alt="购物车"
			src="<%=request.getContextPath() %>/resources/login_img/cart.jpg">
			<p>我的购物车</p> </a>
	</div>
	<div id="myoder">
		<a href="<%=request.getContextPath() %>/user/usercenter/mydata">我的订单</a>
	</div>
</body>
</html>